<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <title>Richzoo 众筹</title>
    <meta name="keywords" content=""/>
    <meta name="description" content=""/>
    <meta name="viewport" content="width=device-width"/>
    <link rel="stylesheet" href="/style/home/bootstrap.css"/>
    <link rel="stylesheet" href="/style/home/common.css"/>
    <link rel="stylesheet" href="/style/home/jquery.validator.css"/>
    <link rel="stylesheet" href="/javascript/home/webuploader/webuploader.css"/>
    <script type="text/javascript" src="/javascript/home/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="/javascript/home/bootstrap.min.js"></script>
    <script type="text/javascript" src="/javascript/home/jquery.validator.js"></script>
    <script type="text/javascript" src="/javascript/home/zh_CN.js"></script>
    <script type="text/javascript" src="/javascript/home/webuploader/webuploader.min.js"></script>
    <script type="text/javascript" src="/javascript/home/esl.js"></script>
    <!--[if lte IE 6]>
    <link rel="stylesheet" href="/style/home/bootstrap-ie6.css">
    <![endif]-->
    <!--[if lte IE 7]>
    <link rel="stylesheet" href="/style/home/ie.css">
    <![endif]-->
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="/javascript/home/html5.js"></script>
    <script src="/javascript/home/respond.min.js"></script>
    <![endif]-->
    <link rel="shortcut icon" href="/images/home/favicon.ico"/>
    <link rel="apple-touch-icon" href="/images/home/touchicon.png"/>
</head>
<body>
<!--header-->
<div class="top-header">
    <div class="clearfix container">
        <!-- >768 nav-->
        <div class="row hidden-xs">
            <div class="logo col-xs-3">
                <a href="/">
                    <img src="<?php echo ($config["SITE_LOGO"]); ?>" class="col-xs-12"/>
                </a>
            </div>
            <div class="wrap-nav col-xs-6">
                <ul class="clearfix" id="nav-list">
                    <li>
                        <a href="/">首页</a>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">项目浏览<i class="icon-chevron-down">向下</i> </a>
                        <ul class="dropdown-menu" role="menu">
                            <?php if(is_array($deal_cate_list)): foreach($deal_cate_list as $key=>$vo): ?><li><a href="/list/?id=<?php echo ($vo["id"]); ?>" title="<?php echo ($vo["name"]); ?>"><?php echo ($vo["name"]); ?></a></li><?php endforeach; endif; ?>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a href="/user.html" class="dropdown-toggle" data-toggle="dropdown">我的众筹<i class="icon-chevron-down">向下</i> </a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="/user.html">我的众筹</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="/project/add.html">发起项目</a>
                    </li>
                    <li>
                        <a href="/help/about.html">新手帮助</a>
                    </li>
                </ul>
            </div>
            <div class="user col-xs-3">
                <?php if(empty($user["user_name"])): ?><a data-toggle="modal" class="pull-right  " id="reg-btn" onclick="code('.code-reg')" data-target="#reg_dialog">注册</a>
                    <a data-toggle="modal" id="login-btn" onclick="code('.code-login')" class="pull-right mr20" data-target="#login_dialog">登录</a>
                    <?php else: ?>
                    <a href="/user/logout" class="user-name pull-right">退出</a>
                    <a href="/user.html" class="pull-right mr20"><?php echo ($user["user_name"]); ?></a>
                    <!--<div class="user-img visible-lg ">-->
                        <!--<a href="/user.html"><div class="user-img-bg"></div>-->
                            <!--<?php if(empty($user["avatar"])): ?><img src="/images/avatar/noavatar_small.gif" /><?php else: ?><img src="<?php echo ($user["avatar_small"]); ?>" /><?php endif; ?>-->
                    <!--</div>--><?php endif; ?>
            </div>
        </div>
        <!-- <768 nav-->
        <div class="row visible-xs">
            <div class="logo">
                <a href="/">
                    <img src="<?php echo ($config["SITE_LOGO"]); ?>" class="col-xs-4"/>
                </a>
            </div>
            <div class="user col-xs-4 col-xs-offset-4 text-right">
                <?php if(empty($user["user_name"])): ?><a data-toggle="modal" id="reg-btn" onclick="code('.code-reg')" data-target="#reg_dialog">注册</a>
                    <a data-toggle="modal" id="login-btn" onclick="code('.code-login')" class="ml10" data-target="#login_dialog">登录</a>
                    <?php else: ?>
                    <div class="user-img">
                        <a href="/user.html"><div class="user-img-bg"></div>
                            <?php if(empty($user["avatar"])): ?><img src="/images/avatar/noavatar_small.gif" /><?php else: ?><img src="<?php echo ($user["avatar_small"]); ?>" /><?php endif; ?>
                    </div>
                    <a href="/user.html" class="user-name"><?php echo ($user["user_name"]); ?></a><?php endif; ?>
            </div>
        </div>
        <div class="row visible-xs mt5">
            <div class="col-xs-12">
                <ul class="clearfix" id="phone-nav-list">
                    <li class="col-xs-2">
                        <a href="/">首页</a>
                    </li>
                    <li class="dropdown col-xs-3">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">项目浏览<i class="glyphicon glyphicon-chevron-down"></i> </a>
                        <ul class="dropdown-menu" role="menu">
                            <?php if(is_array($deal_cate_list)): foreach($deal_cate_list as $key=>$vo): ?><li><a href="/list/?id=<?php echo ($vo["id"]); ?>" title="<?php echo ($vo["name"]); ?>"><?php echo ($vo["name"]); ?></a></li><?php endforeach; endif; ?>
                        </ul>
                    </li>
                    <li class="col-xs-3">
                        <a href="/user.html" class="dropdown-toggle" data-toggle="dropdown">我的众筹<i class="glyphicon glyphicon-chevron-down"></i> </a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="/user.html">我的众筹</a></li>
                        </ul>
                    </li>
                    <li class="col-xs-2">
                        <a href="/project/add.html">发起项目</a>
                    </li>
                    <li class="col-xs-2">
                        <a href="/help/list.html">新手帮助</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<!--header end-->
<script type="text/javascript" src="/javascript/home/juicer-min.js"></script>

<div class="main-container">
    <div class="container" id="wrap-detail">
        <div class="row mb10">
            <div class="col-xs-8">
                <h1 class="detail-title mb15"><?php echo ($deal_info["name"]); ?></h1>

                <div>
                    <span class="mr10">发起人：<?php echo ($deal_info["user_name"]); ?></span>
                    <span><?php echo ($deal_info["province"]); echo ($deal_info["city"]); ?></span>
                </div>
            </div>
            <div class="col-xs-4 text-right">
                <?php if(($user["id"] != $deal_info['user_id'])): ?><button class="ui-btn ui-btn-blue btn-support mr10" data-toggle="modal" data-target=".modal-support"><i
                        class="glyphicon glyphicon-star"></i><span>支持</span></button>
                <button class="ui-btn <?php if(($fav_status == 1)): ?>ui-btn-disabled<?php else: ?>ui-btn-red<?php endif; ?> btn-like" id="add-like" data-id="<?php echo ($deal_info["id"]); ?>"><i class="glyphicon glyphicon-heart"></i><span class="like-text"><?php if(($fav_status == 1)): ?>不再喜欢<?php else: ?>喜欢<?php endif; ?></span></button><?php endif; ?>
            </div>
            <div class="modal modal-support" tabindex="-1" role="dialog"  aria-hidden="true">
                <div class="modal-dialog dialog-support">
                    <div class="modal-content">
                        <button class="ui-btn ui-btn-blue btn-add-close" data-dismiss="modal">x</button>
                        <div class="modal-support-head">
                            选择你的支持项目
                        </div>
                        <div class="modal-support-content">
                            <?php if(is_array($deal_item_list)): $k = 0; $__LIST__ = $deal_item_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><div class="support-item <?php if(($support_full > 1)): ?>support-full<?php endif; ?>">
                                <div class="clearfix mb15">
                                    <span class="pull-left support-money">￥<?php echo ($vo["price_format"]); ?></span>
                                    <a <?php if(($vo["support_full"] == 0)): ?>href="/cart.html?id=<?php echo ($vo["id"]); ?>"<?php endif; ?> class="ui-btn btn-support ui-btn-blue pull-right mt10 <?php if(($vo["support_full"] == 1)): ?>ui-btn-disabled<?php endif; ?>"><?php if(($vo["support_full"] == 1)): ?>限额已满<?php else: ?>支持<?php endif; ?></a>
                                </div>
                                <h1><?php echo ($vo["title"]); ?></h1>
                                <p class="mb20"><?php echo (nl2br($vo["description"])); ?></p>
                                <p><?php if(($vo["limit_user"] == 0)): ?>不限购买人数<?php else: ?>限额<span class="fc-red"><?php echo ($vo["limit_user"]); ?></span>位，剩余<span class="fc-red"><?php echo ($vo["limit_remain"]); ?></span>位<?php endif; ?></p>
                                <div class="img"><img src="/images/home/upload/touxiang.jpg"></div>
                                <p class="fc9 mt10 mb5">预计回报发放时间:项目成功结束后<?php echo ($vo["repaid_day"]); ?>天</p>
                                <p class="fc9"><?php if(($deal_item["delivery_fee"] == 1)): ?>快递费:¥<?php echo (round($deal_item["delivery_fee"],2)); else: ?>全国包邮<?php endif; ?></p>
                        </div><?php endforeach; endif; else: echo "" ;endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-8">
            <div class="detail-wrap">
                <div class="detail-sum clearfix p10 mb20">
                    <div class="sum-title pull-left mr10">
                        <p>项目简介</p>
                    </div>
                    <div class="sum-text p20">
                        <?php echo ($deal_info["brief"]); ?>
                    </div>
                </div>
                <div class="detail-content">
                    <div class="detail-index mb20">
                        <ul class="clearfix wrap-detail-tabs">
                            <li><a href="/deal/show/?id=<?php echo ($deal_info["id"]); ?>">项目主页</a><i class="glyphicon glyphicon-arrow-down detail-tabs-icon"></i></li>
                            <li><a href="/deal/status/?id=<?php echo ($deal_info["id"]); ?>">项目状态 </a><i class="glyphicon glyphicon-arrow-down detail-tabs-icon"></i></li>
                            <li class="current"><a href="/deal/comment/?id=<?php echo ($deal_info["id"]); ?>">项目咨询</a><i class="glyphicon glyphicon-arrow-down detail-tabs-icon"></i></li>
                            <li><a href="/deal/intro/?id=<?php echo ($deal_info["id"]); ?>">自我介绍 </a><i class="glyphicon glyphicon-arrow-down detail-tabs-icon"></i></li>
                        </ul>
                        <div class="wrap-share">
                            <!-- JiaThis Button BEGIN -->
                            <div class="jiathis_style">
                                <a class="jiathis_button_qzone"></a>
                                <a class="jiathis_button_tsina"></a>
                                <a class="jiathis_button_weixin"></a>
                                <a class="jiathis_button_renren"></a>
                                <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
                                <a class="jiathis_counter_style"></a>
                            </div>
                            <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
                            <!-- JiaThis Button END -->
                        </div>

                        <div class="detail-textarea">
                            <div class="box-textarea">
                                <textarea placeholder="请在此输入评论" class="content0" rows="10"></textarea>
                            </div>
                        </div>
                        <div class="row plr15 mb20">
                            <button class="ui-btn ui-btn-blue col-xs-3 btn-answer col-xs-offset-9 send-discuss" data-id="0" deal-id="<?php echo ($deal_info["id"]); ?>">发表咨询<i
                                    class="glyphicon glyphicon-chevron-right ml10 f16"></i></button>
                        </div>

                        <div id="detail-tabs-content">
                                <div style="width:100%;height: 1px;background-color: #DDD;"></div>
                            <!-- Tab panes -->
                            <div class="tab-content">
                                <div role="tabpanel" class="tab-pane active">
                                    <ul class="appraise-list">
                                        <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="row">
                                            <div class="date">
                                                <span class="day"><?php echo (date("d",$vo["create_time"])); ?></span>
                                                <span class="month"><?php echo (date("m",$vo["create_time"])); ?>月</span>
                                            </div>

                                            <div class="col-xs-9 col-xs-offset-1">
                                                <div class="discuss-main">
                                                    <div class="discuss-text">
                                                        <span class="dis-name"><?php echo ($vo["deal_user_name"]); ?>:</span> <?php echo ($vo["content"]); ?>
                                                    </div>
                                                    <?php if(($project_master == 1)): ?><div class="appraise-count ui-btn ui-btn-blue" data-toggle="collapse" data-target="#discuss-item<?php echo ($vo["id"]); ?>" aria-expanded="false" aria-controls="discuss-item<?php echo ($vo["id"]); ?>"  data-id="<?php echo ($vo["id"]); ?>" deal-id="<?php echo ($deal_info["id"]); ?>">
                                                        <?php if(($vo["reply_status"] == 1)): ?>已回复
                                                            <?php else: ?>
                                                            未回复<?php endif; ?>
                                                    </div><?php endif; ?>
                                                </div>

                                                <div class="collapse mt15" id="discuss-item<?php echo ($vo["id"]); ?>">
                                                    <div class="well">
                                                        <?php if(($project_master == 1)): ?><div class="dis-textarea">
                                                                <!-- 这里ajaxPOST提交评论 -->
                                                                <textarea name="content" class="setting-sum content<?php echo ($vo["id"]); ?>" placeholder="您的介绍可更有效的帮助支持者了解您和了解项目的背景"></textarea>
                                                                <button class="ui-btn ui-btn-blue btn-discuss send-discuss" data-id="<?php echo ($vo["id"]); ?>" deal-id="<?php echo ($deal_info["id"]); ?>">
                                                                    <?php if(($vo["reply_status"] == 1)): ?>修改
                                                                        <?php else: ?>
                                                                        回复<?php endif; ?>
                                                                </button>
                                                            </div><?php endif; ?>
                                                        <?php if(($vo["reply_status"] == 1)): ?><ul class="dis-list dis-list<?php echo ($vo["id"]); ?>">
                                                            <li>
                                                            <img src="<?php echo ($vo["avatar_small"]); ?>" class="dis-list-photo">
                                                            <span class="dis-name"><?php echo ($vo["user_name"]); ?>：</span><span class="dis-text" id="reply<?php echo ($vo["id"]); ?>"><?php echo ($vo["reply_content"]); ?></span>
                                                                <span class="reply-time">回复时间：<?php echo (date("Y-m-d H:i",$vo["reply_time"])); ?></span>
                                                            </li>
                                                        </ul><?php endif; ?>
                                                    </div>
                                                </div>
                                                <?php if(($project_master != 1)): ?><div class="well">
                                                        <ul class="dis-list dis-list<?php echo ($vo["id"]); ?>">
                                                            <li>
                                                                <img src="<?php echo ($vo["avatar_small"]); ?>" class="dis-list-photo">
                                                                <span class="dis-name"><?php echo ($vo["user_name"]); ?>：</span><span class="dis-text" id="reply<?php echo ($vo["id"]); ?>"><?php echo ($vo["reply_content"]); ?></span>
                                                                <span class="reply-time"><?php echo (date("Y-m-d H:i",$vo["reply_time"])); ?></span>
                                                            </li>
                                                        </ul>
                                                </div><?php endif; ?>
                                            </div>
                                        </li><?php endforeach; endif; else: echo "" ;endif; ?>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>


        <div class="col-sm-4">
            <div class="detail-sidebar">
                <div class="detail-item detail-item1">
                    <i class="ui-icon icon-collecting"></i>
                    <h3>目前累计资金<span>（元）</span></h3>

                    <div class="grand-total"><?php echo ($deal_info["support_amount_format"]); ?></div>
                    <?php if(($deal_info["begin_time"] > $now)): ?><p class="sum">此项目在<span><?php echo (date("Y年m月d日H:i",$deal_info["begin_time"])); ?></span>正式上线，<?php if(($deal_info["end_time"] != 0)): ?>必须在<?php echo (date("Y年m月d日H:i",$deal_info["end_time"])); ?>之前得到<span>¥<?php echo ($deal_info["limit_price_format"]); ?></span>的支持才可成功！<?php endif; ?></p><?php endif; ?>
                    <?php if(($deal_info["end_time"] < $now) AND ($deal_info["end_time"] != 0)): ?><p class="sum">此项目必须在<span><?php echo (date("Y年m月d日H:i",$deal_info["end_time"])); ?></span>已经过期，<?php if(($deal_info["is_success"] == 0)): ?>未能达到<span>¥<?php echo ($deal_info["limit_price_format"]); ?></span>的目标。<?php else: ?>成功筹到 ¥<?php echo ($deal_info["support_amount_format"]); ?>。<?php endif; ?></p><?php endif; ?>
                    <?php if((($deal_info["end_time"] > $now OR $deal_info["end_time"] == 0) AND ($deal_info["begin_time"] < $now AND $deal_info["begin_time"] != 0))): ?><p class="sum">此项目必须在<span><?php echo (date("Y年m月d日H:i",$deal_info["end_time"])); ?></span>前得到<span>¥<?php echo ($deal_info["limit_price_format"]); ?></span>的支持才可成功！</p><?php endif; ?>
                    <?php if(($deal_info["begin_time"] == 0)): ?><p class="sum">此项目目前未上线,处于预热阶段<span>&nbsp;&nbsp;该项目需要获取<span>¥<?php echo ($deal_info["limit_price_format"]); ?></span>的支持才可成功！</p><?php endif; ?>
                    <div class="clearfix">
                        <div class="pull-left">
                            <div class="chart-toroidal red-chart detail-chart">
                                <div class="wrap-pie-apr" id="pie<?php echo ($k); ?>" data-apr="<?php echo ($deal_info["remain_support_percent"]); ?>%">
                                </div>
                            </div>
                            <h3 class="text-center mt5"><?php echo ($deal_info["remain_support_status"]); ?></h3>
                        </div>
                        <div class="pull-right">
                            <div class="chart-toroidal blue-chart detail-chart">
                                <div class="wrap-pie-day" id="pie<?php echo ($k); ?>1" data-apr="<?php echo ($deal_info["remain_days_percent"]); ?>%" data-day="<?php echo ($deal_info["remain_days"]); ?>">
                                </div>
                            </div>
                            <h3 class="text-center mt5"><?php echo ($deal_info["remain_days_status"]); ?></h3>
                        </div>
                    </div>
                </div>
                <?php if(is_array($deal_item_list)): $k = 0; $__LIST__ = $deal_item_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><div class="detail-item">
                        <div class="title clearfix">
                            <h4 class="pull-left fb f18">￥<?php echo ($vo["price_format"]); ?></h4>
                            <span class="pull-right">已有<?php echo ($vo["support_count"]); ?>位支持者</span>
                        </div>
                        <h1><?php echo ($vo["title"]); ?></h1>
                        <p class="mb30 fb"><?php echo (nl2br($vo["description"])); ?></p>

                        <p class="mb5"><span class="fc9">配送费用：</span><?php if(($vo["is_delivery"] == 1)): if(($vo["delivery_fee"] > 1)): ?>¥<?php echo (round($vo["delivery_fee"],2)); else: ?>全国包邮<?php endif; else: ?>不需要配送<?php endif; ?>
                        </p>

                        <p class="mb5"><span class="fc9">预计回报发送时间：</span>项目成功结束后<?php echo ($vo["repaid_day"]); ?>天</p>

                        <p class="mb25"><span class="fc9">限制人数：</span><?php if(($vo["is_limit_user"] == 0)): ?>不限<?php else: echo ($vo["limit_user"]); ?>人<?php endif; ?></p>
                        <button class="ui-btn ui-btn-blue btn-join <?php if(($vo["support_full"] == 1)): ?>ui-btn-disabled<?php endif; ?>" <?php if(($vo["support_full"] == 0)): ?>onclick="javascript:window.location.href='/cart.html?id=<?php echo ($vo["id"]); ?>';"<?php endif; ?>><?php if(($vo["support_full"] == 1)): ?>限额已满<?php else: ?>我要支持￥<?php echo ($vo["price_format"]); endif; ?><i class="glyphicon glyphicon-chevron-right ml10 f16"></i></button>
                    </div><?php endforeach; endif; else: echo "" ;endif; ?>

                <p class="fc9 f12 mb5">风险提示</p>

                <p class="fc9 f12 mb5">1. 请在下单后15分钟内付款哦，否则您的订单会被自动关闭。您可将订金和尾款一次性付款到支付宝，不需要后面再来付尾款了哦</p>

                <p class="fc9 f12 mb5">2. 项目是存在风险的，如果项目没有按照预期的目标执行，项目发起人可能无法正常发放回报。如果产生了这种情况，您的支付宝中的尾款会退还给您，但是由于订金已经被项目组织者使用，您需要和项目组织者协商订金退还的事宜，淘宝网没有帮您追讨订金的义务哦。</p>
            </div>
        </div>
    </div>
</div>
</div>
<!--<script id="tpl" type="text/template">-->
    <!--{@each data as vo,index}-->
    <!--<li>-->
        <!--<img src="${vo.avatar_small}" class="dis-list-photo">-->
        <!--<span class="dis-name">${vo.deal_user_name}：</span><span class="dis-text">${vo.content}</span>-->
    <!--</li>-->
    <!--{@/each}-->
<!--</script>-->
        <script>
//            function getComment(deal_id,id){
//                $.get('/deal/comment_ajax/?deal_id='+deal_id+'&id='+id,function(data){
//                    var tpl = document.getElementById('tpl').innerHTML;
//                    tpl = juicer(tpl,data);
//                    $(".dis-list"+id).html( tpl );
//                },'json')
//            }
            $(function(){
//                $(".appraise-count").on("click",function(){
//                    var id = $(this).attr('data-id');
//                    var deal_id = $(this).attr('deal-id');
//                    getComment(deal_id,id);
//                });
                $(".send-discuss").on('click',function(){
                    var id = $(this).attr('data-id');
                    var deal_id = $(this).attr('deal-id');
                    var content = $('.content'+id).val();
                    $.post('/deal/comment_do',{id:id,deal_id:deal_id,content:content},function(data){
                        alert(data.info);
                        if(data.status == 1){
                            window.location.reload();
                            $("#reply"+id).text(content);
                        }
//                        if(data.status == 1){
//                            $('.content'+id).val('');
//                            getComment(deal_id,id);
//                            if(id == 0){
//                                window.location.reload();
//                            }
//                        }else{
//                            alert(data.info);
//                        }
                    },'json')
                })
            })
        </script>
<div class="wrap-footer">
    <div class="container footer">
        <div class="menu-nav text-center">
            <?php if(is_array($help_list)): $k = 0; $__LIST__ = $help_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k; if(( $k != 1)): ?><span class="menu-nav-split"></span><?php endif; ?>
            <a href="<?php echo ($vo["url"]); ?>"><?php echo ($vo["title"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
        <div class="back-top">
            <img src="/images/home/back_top.png"/>
        </div>
        <div class="info mb15 text-center">
            <span>网络文化经营许可证：文网文[2010]040号</span>
            <span>值电信业务经营许可证：浙B2-20080224-1</span>
            <span>信息网络传播视听节目许可证：1109364号</span>
            <span>互联网违法和不良信息举报电话：0571-81683755</span>
        </div>
        <div class="copy mb15 text-center">
            &copy;&nbsp;&nbsp;2014 RichZoo. All rights reserved. 沪ICP备14018325号 Copyright 2014 锐祁机构
        </div>
    </div>
</div>
<?php if(empty($user_info['user_name'])): ?><!--注册-->
<div class="modal fade" id="reg_dialog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" id="wrap_reg_dialog">
        <div class="modal-content">
            <button class="ui-btn ui-btn-blue btn-add-close" data-dismiss="modal"onclick="window.location.reload()">x</button>
            <h1 class="add-header">新用户注册</h1>
            <div class="add-content">
                <div class="add-content-form">
                    <form class="ui-form" id="reg-form" autocomplete="off">

                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">邮箱：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="email" placeholder="填写电子邮箱">
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">手机号：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="mobile" placeholder="填写手机号">
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">密码：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="password" name="password" maxlength="16" placeholder="设置密码">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">确认密码：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="password" name="re_password" maxlength="16" placeholder="输入同一密码">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">验证码：</label>
                            <div class="col-xs-3">
                                <div class="ipt lg-code">
                                    <input type="text" name="code" placeholder="请输入图片中的数字">
                                </div>
                            </div>
                            <div class="pull-left">
                                <div class="wrap-code">
                                    <div class="text-center pt5 ml5">
                                        <img class="code-img code-reg" src="/index/verify_code"  alt="验证码">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">短信验证码：</label>
                            <div class="col-xs-3">
                                <div class="ipt lg-code">
                                    <input type="text" name="auth_code" placeholder="输入收到的验证码">
                                </div>
                            </div>
                            <a class="ui-btn ui-btn-blue btn-get-code get-code-reg">获取验证码</a>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2"></label>
                            <div class="form-radio col-xs-4">
                                <div class="ipt">
                                    <div class="col-xs-12">
                                        <span class="ui-radio check-agree"></span>
                                        阅读并同意RichZoo众筹<a href="#" class="fc-blue">《服务协议》</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="add-link text-center mt30">
                    <button class="ui-btn ui-btn-blue ui-btn-default" id="register">注册</button>
                    <p class="tips mt10 fc-red f14"></p>
                </div>
            </div>
        </div>
    </div>
</div>
<!--注册end-->
<!--login s-->
<div class="modal fade" id="login_dialog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" id="wrap_login_dialog">
        <div class="modal-content" id="login-wrap">
            <button class="ui-btn ui-btn-blue btn-add-close" data-dismiss="modal" id="login-close">x</button>
            <h1 class="add-header">用户登录</h1>
            <div class="add-content">
                <div class="add-content-form">
                    <form class="ui-form" id="login-form" autocomplete="off">
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">邮箱：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="username" id="username" placeholder="邮箱">
                                </div>
                                <div class="pl5 mt5" id="goto-reg">没有帐号？去注册</div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">登录密码：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="password" name="password" maxlength="16" id="pass" placeholder="输入登录密码">
                                </div>
                                <div class="pl5 mt5" id="link-forget">忘记密码？</div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">验证码：</label>
                            <div class="col-xs-3">
                                <div class="ipt lg-code">
                                    <input type="text" name="code" maxlength="4" placeholder="请输入图片中的数字">
                                </div>
                            </div>
                            <div class="pull-left">
                                <div class="wrap-code">
                                    <div class="text-center pt5 ml5">
                                        <img class="code-img code-login" src="/index/verify_code" alt="验证码">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                    <form class="ui-form" id="login-bind-form" autocomplete="off" style="display: none">
                                    <input type="hidden" name="username" id="h-user">
                                    <input type="password" style="display: none" id="h-pass" name="password" >
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">手机号码：</label>
                            <div class="col-xs-4">
                                <div class="ipt lg-code">
                                    <input type="text" name="mobile" id="phone"  placeholder="输入手机号码">
                                </div>
                            </div>
                            <a class="ui-btn ui-btn-blue btn-get-code get-bind-code">获取验证码</a>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">短信验证码：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="code" placeholder="请填写收到验证码">
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="add-link text-center mt30 mb30" id="wrap-login">
                    <button class="ui-btn ui-btn-blue ui-btn-default" id="login-ajax">登录</button>
                    <p class="login-tips mt10 fc-red f14"></p>
                </div>
                <div class="add-link text-center mt30 mb30" id="wrap-login-bind" style="display: none">
                    <button class="ui-btn ui-btn-blue ui-btn-default" id="login-ajax-bind">绑定并登录</button>
                    <p class="login-bind-tips mt10 fc-red f14"></p>
                </div>
            </div>
        </div>
        <div class="modal-content" id="forget-wrap">
            <button class="ui-btn ui-btn-blue btn-add-close" data-dismiss="modal" onclick="window.location.reload()">x</button>
            <h1 class="add-header">找回密码</h1>
            <div class="add-content">
                <div class="add-content-form" style="padding: 40px 0 20px 0">
                    <form class="ui-form" id="forget-form" autocomplete="off">
                        <div class="row">
                            <label class="col-xs-3 col-xs-offset-2">注册邮箱：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="email" placeholder="注册邮箱">
                                </div>
                            </div>
                        </div>
                        <!--<div class="row">-->
                            <!--<label class="col-xs-3 col-xs-offset-2">短信验证码：</label>-->
                            <!--<div class="col-xs-3">-->
                                <!--<div class="ipt">-->
                                    <!--<input type="text" name="auth_code" placeholder="输入收到的验证码">-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<a class="ui-btn ui-btn-blue btn-get-code get-code-lost">获取验证码</a>-->
                        <!--</div>-->
                        <!--<div class="row">-->
                            <!--<label class="col-xs-3 col-xs-offset-2">新的登录密码：</label>-->
                            <!--<div class="col-xs-4">-->
                                <!--<div class="ipt">-->
                                    <!--<input type="password" name="password" placeholder="设置密码">-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--<div class="row">-->
                            <!--<label class="col-xs-3 col-xs-offset-2">再输入一次密码：</label>-->
                            <!--<div class="col-xs-4">-->
                                <!--<div class="ipt">-->
                                    <!--<input type="password" name="re_password" placeholder="输入同一密码">-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->
                    </form>
                </div>
                <div class="add-link text-center mt30 mb30">
                    <button class="ui-btn ui-btn-blue ui-btn-default" id="lost-ajax">提交</button>
                    <p class="lost-tips mt10 fc-red f14"></p>
                </div>
            </div>
        </div>
    </div>
</div><?php endif; ?>
<!--login e-->
<script type="text/javascript" src="/javascript/home/main.js"></script>
<?php if(($request_login == 1)): ?><script type="text/javascript">
    $('#login_dialog').modal('show');
</script><?php endif; ?>
        <script>
            $(function(){
                $("#login-close").on('click',function(){
                    var _url = window.location.href;
                    var _status=_url.indexOf('request_login');
                    if(_status == -1){
                        window.location.reload();
                    }
                })
            })
        </script>
</body>
</html>